package com.spring.test.controller;

import com.spring.test.dao.RespBean;
import com.spring.test.service.ExamTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author wangjie
 * @Version V1.0.0
 * @Date Created in 2022/3/8 0008
 */
@Controller
@RequestMapping("ExamTime")
public class ExamTimeController {

    @Autowired
    private ExamTimeService examTimeService;


    public RespBean setExamTime(String startTime, String stopTime, int adminId,int totalScore,int qualified){

        int i = examTimeService.setExamTime(startTime, stopTime, adminId, totalScore, qualified);

        if (i == 1){
            return RespBean.success();
        }
        return RespBean.fail();
    }
    
    //查看完成场次

    //考生开始考试
}
